package sensorLAN.utiles;

public class Numeros {
	private Numeros(){
		
	}
	
	public static double redondear(double number, int posiciones){
		int pot= (int) Math.pow(10, posiciones);
		number = Math.round(number * pot);
		return number/pot;
	}
	
	public static int random(int min, int max){
		int valorEntero = (int) Math.floor(Math.random()*(max-min+1)+min);
		
		return valorEntero;
	}
	
	public static void main(String[] args) {
		for(int i= 0; i < 20; i++){
			System.out.println(redondear(10,20));		
		}
	}
}
